asString

public abstract String asString()

Returns the XPath result represented as a string.

Throws

if the result is not of a string type (see isString)

when the document this instance belongs to is closed